import request from '@/utils/request'

// 获取树状机构信息
export const getTree = () => request.get('/manager/business-hall/tree')

// 获取机构详情
export const getTreeInteger = id => request.get(`/manager/business-hall/${id}`)

// 获取员工详情
export const getUserInteger = id => request.get(`/manager/business-hall/user/${id}`)

// 获取运费模板列表
export const getCarriages = id => request.get(`/manager/carriages`)

// 新增/修改运费模板 
export const updataCarriages = data => request.post(`/manager/carriages`, data)

// 删除 
export const delCarriages = id => request.delete(`/manager/carriages/${id}`)